package com.juyu.reader.pc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.juyu.reader.pc.dao.BookDao;
import com.juyu.reader.pc.model.Book;

@Service
public class BookService {
	@Autowired
	private BookDao bookDao;

	public List<Book> findBook(Book book) {
		return bookDao.findBook(book);
	}

	public int countBook(Book book) {
		return bookDao.countBook(book);
	}

	public List<Book> findBookById(int bookId) {
		return bookDao.findBookById(bookId);
	}

	public List<Book> findBookOrderBy(Book book) {
		return bookDao.findBookOrderBy(book);
	}

	public List<Book> findBookByRank(Book book) {
		return bookDao.findBookByRank(book);
	}

	public int countBookByRank(Book book) {
		return bookDao.countBookByRank(book);
	}
	
	public List<Book> findBookByStack(Book book) {
		return bookDao.findBookByStack(book);
	}

	public int countBookByStack(Book book) {
		return bookDao.countBookByStack(book);
	}
}
